/**
 * Copyright © 2016-2025 The Thingsboard Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@import './../scss/constants';

.rule-node-config {
  tb-json-object-edit.tb-rule-node-configuration-json {
    display: block;
    height: 300px;
  }

  .tb-rulenode-directive-error {
    font-size: 13px;
    font-weight: 400;
    color: rgb(221, 44, 0);
  }

  .tb-error {
    letter-spacing: 0.25px;
    color: var(--mdc-theme-error, #f44336);
  }

  .tb-required::after {
    content: "*";
    font-size: 16px;
    color: #000000de;
  }

  .help-icon {
    color: #000000;
    opacity: .38;
    padding: unset;

    &:hover {
      color: $tb-primary-color;
      opacity: unset;
    }
  }

  .same-width-component-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    @media #{$mat-xs} {
      flex-direction: column;
      flex-wrap: wrap;
      gap: 8px;
    }

    > * {
      flex: 1;
    }

    .flex-2 {
      flex: 2;
    }

    .third-width {
      max-width: 32%;
      @media #{$mat-xs} {
        max-width: 100%;
      }
    }
  }
}
